extends KinematicBody

var phase = 0.0
var freq = 1.0
var rot_freq = 2.0
var amplitude = 1.0


# Declare member variables here. Examples:
# var a = 2
# var b = "text"


# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.

func _process(delta):
	phase = wrapf(phase + freq*delta,0,2*PI)
	translation = Vector3(0,amplitude*sin(phase),0)
	rotate_x(freq*delta)
	rotate_y(freq*delta)
	rotate_z(freq*delta/2.0)

# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
#	pass
